import React, { Component,createContext } from 'react'
// console.log(createContext());
let context=createContext();
let {Provider,Consumer}=context;
class MyContext extends Component {
    render() {
        return (
            <div>
                <Provider value={"我是context数据"}>
                    {this.props.children}
                </Provider>
            </div>
        )
    }
}
export {MyContext,Consumer};